<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:rich="http://richfaces.org/rich"> 

<h:head></h:head> 
<body> 
<h:form>
<p:panel header="Transferencia de Bem">
<p:panelGrid columns="2">

	ID: <p:inputText value="#{transfBemBean.transfBem.id}"></p:inputText>
	Bem:
		<h:selectOneMenu value="#{transfBemBean.transfBem.bem}"
					converter="bemConverter">
					<f:selectItems value="#{bemBean.buscarTodos}"
					var="cdbem" itemLabel="#{cdbem.nome}"/>
					
		</h:selectOneMenu>
	Destino:
		<h:selectOneMenu value="#{transfBemBean.transfBem.centro}"
					converter="centroConverter">
					<f:selectItems value="#{centroBean.buscaTodos}"
					var="cent" itemLabel="#{cent.nome}"></f:selectItems>
					
		</h:selectOneMenu>	
		
	Nota Fiscal: <p:inputText value="#{transfBemBean.transfBem.nfe}"></p:inputText>
	NFI: <p:inputText value="#{transfBemBean.transfBem.nfi}"></p:inputText>
	Data: <p:inputMask value="#{transfBemBean.transfBem.dataTransf}" mask="99/99/9999"><f:convertDateTime pattern="dd/MM/yyyy"/></p:inputMask>
	Prazo: <p:inputText value="#{transfBemBean.transfBem.prazo}"></p:inputText>
	
	 
	
		
	
</p:panelGrid>
</p:panel>
<h:form>
		<p:commandButton value="Salvar" size="10" action="#{transfBemBean.salvar()}" ajax="false"></p:commandButton>
		<p:commandButton value="Menu" action="#{menuBean.index}" ajax="false"></p:commandButton>	
		<p:commandButton value="Lista Transferencia" action="#{menuBean.listaTransferenciaBem}" ajax="false"></p:commandButton>
		
		<rich:menuItem>
				
			</rich:menuItem>
			
	</h:form>
</h:form>

</body> 
</html>
